.class public Lcom/instagram/android/mediacache/IgImageView;
.super Landroid/widget/ImageView;
.source "IgImageView.java"


# instance fields
.field protected a:Z

.field private b:Ljava/lang/String;

.field private c:Lcom/instagram/f/b/g;

.field private d:Landroid/graphics/drawable/Drawable;

.field private e:Z

.field private f:Lcom/instagram/android/mediacache/g;

.field private g:Lcom/instagram/android/mediacache/h;

.field private h:Lcom/instagram/f/b/e;


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .locals 1
    .parameter "context"

    .prologue
    const/4 v0, 0x0

    .line 83
    invoke-direct {p0, p1}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V

    .line 23
    iput-boolean v0, p0, Lcom/instagram/android/mediacache/IgImageView;->a:Z

    .line 26
    iput-boolean v0, p0, Lcom/instagram/android/mediacache/IgImageView;->e:Z

    .line 35
    new-instance v0, Lcom/instagram/android/mediacache/e;

    invoke-direct {v0, p0}, Lcom/instagram/android/mediacache/e;-><init>(Lcom/instagram/android/mediacache/IgImageView;)V

    iput-object v0, p0, Lcom/instagram/android/mediacache/IgImageView;->g:Lcom/instagram/android/mediacache/h;

    .line 44
    new-instance v0, Lcom/instagram/android/mediacache/f;

    invoke-direct {v0, p0}, Lcom/instagram/android/mediacache/f;-><init>(Lcom/instagram/android/mediacache/IgImageView;)V

    iput-object v0, p0, Lcom/instagram/android/mediacache/IgImageView;->h:Lcom/instagram/f/b/e;

    .line 84
    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .locals 1
    .parameter "context"
    .parameter "attrs"

    .prologue
    const/4 v0, 0x0

    .line 87
    invoke-direct {p0, p1, p2}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    .line 23
    iput-boolean v0, p0, Lcom/instagram/android/mediacache/IgImageView;->a:Z

    .line 26
    iput-boolean v0, p0, Lcom/instagram/android/mediacache/IgImageView;->e:Z

    .line 35
    new-instance v0, Lcom/instagram/android/mediacache/e;

    invoke-direct {v0, p0}, Lcom/instagram/android/mediacache/e;-><init>(Lcom/instagram/android/mediacache/IgImageView;)V

    iput-object v0, p0, Lcom/instagram/android/mediacache/IgImageView;->g:Lcom/instagram/android/mediacache/h;

    .line 44
    new-instance v0, Lcom/instagram/android/mediacache/f;

    invoke-direct {v0, p0}, Lcom/instagram/android/mediacache/f;-><init>(Lcom/instagram/android/mediacache/IgImageView;)V

    iput-object v0, p0, Lcom/instagram/android/mediacache/IgImageView;->h:Lcom/instagram/f/b/e;

    .line 88
    invoke-direct {p0, p2}, Lcom/instagram/android/mediacache/IgImageView;->a(Landroid/util/AttributeSet;)V

    .line 89
    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
    .locals 1
    .parameter "context"
    .parameter "attrs"
    .parameter "defStyle"

    .prologue
    const/4 v0, 0x0

    .line 92
    invoke-direct {p0, p1, p2, p3}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    .line 23
    iput-boolean v0, p0, Lcom/instagram/android/mediacache/IgImageView;->a:Z

    .line 26
    iput-boolean v0, p0, Lcom/instagram/android/mediacache/IgImageView;->e:Z

    .line 35
    new-instance v0, Lcom/instagram/android/mediacache/e;

    invoke-direct {v0, p0}, Lcom/instagram/android/mediacache/e;-><init>(Lcom/instagram/android/mediacache/IgImageView;)V

    iput-object v0, p0, Lcom/instagram/android/mediacache/IgImageView;->g:Lcom/instagram/android/mediacache/h;

    .line 44
    new-instance v0, Lcom/instagram/android/mediacache/f;

    invoke-direct {v0, p0}, Lcom/instagram/android/mediacache/f;-><init>(Lcom/instagram/android/mediacache/IgImageView;)V

    iput-object v0, p0, Lcom/instagram/android/mediacache/IgImageView;->h:Lcom/instagram/f/b/e;

    .line 93
    invoke-direct {p0, p2}, Lcom/instagram/android/mediacache/IgImageView;->a(Landroid/util/AttributeSet;)V

    .line 94
    return-void
.end method

.method static synthetic a(Lcom/instagram/android/mediacache/IgImageView;)Landroid/graphics/drawable/Drawable;
    .locals 1
    .parameter

    .prologue
    .line 20
    iget-object v0, p0, Lcom/instagram/android/mediacache/IgImageView;->d:Landroid/graphics/drawable/Drawable;

    return-object v0
.end method

.method static synthetic a(Lcom/instagram/android/mediacache/IgImageView;Lcom/instagram/f/b/g;)Lcom/instagram/f/b/g;
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 20
    iput-object p1, p0, Lcom/instagram/android/mediacache/IgImageView;->c:Lcom/instagram/f/b/g;

    return-object p1
.end method

.method private a(Landroid/util/AttributeSet;)V
    .locals 4
    .parameter

    .prologue
    .line 97
    invoke-virtual {p0}, Lcom/instagram/android/mediacache/IgImageView;->getContext()Landroid/content/Context;

    move-result-object v0

    sget-object v1, Lcom/facebook/bc;->IgImageView:[I

    invoke-virtual {v0, p1, v1}, Landroid/content/Context;->obtainStyledAttributes(Landroid/util/AttributeSet;[I)Landroid/content/res/TypedArray;

    move-result-object v0

    .line 99
    new-instance v1, Lcom/instagram/android/mediacache/b;

    sget v2, Lcom/facebook/bc;->IgImageView_placeholder:I

    const/4 v3, 0x0

    invoke-virtual {v0, v2, v3}, Landroid/content/res/TypedArray;->getColor(II)I

    move-result v2

    invoke-direct {v1, v2}, Lcom/instagram/android/mediacache/b;-><init>(I)V

    iput-object v1, p0, Lcom/instagram/android/mediacache/IgImageView;->d:Landroid/graphics/drawable/Drawable;

    .line 100
    invoke-virtual {v0}, Landroid/content/res/TypedArray;->recycle()V

    .line 101
    return-void
.end method

.method private a(Ljava/lang/String;Z)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 113
    invoke-virtual {p0}, Lcom/instagram/android/mediacache/IgImageView;->c()V

    .line 115
    invoke-direct {p0, p1, p2}, Lcom/instagram/android/mediacache/IgImageView;->b(Ljava/lang/String;Z)V

    .line 116
    return-void
.end method

.method static synthetic b(Lcom/instagram/android/mediacache/IgImageView;)Ljava/lang/String;
    .locals 1
    .parameter

    .prologue
    .line 20
    iget-object v0, p0, Lcom/instagram/android/mediacache/IgImageView;->b:Ljava/lang/String;

    return-object v0
.end method

.method private b(Ljava/lang/String;Z)V
    .locals 2
    .parameter
    .parameter

    .prologue
    .line 120
    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/instagram/android/mediacache/IgImageView;->a:Z

    .line 121
    iput-object p1, p0, Lcom/instagram/android/mediacache/IgImageView;->b:Ljava/lang/String;

    .line 123
    new-instance v0, Lcom/instagram/f/b/f;

    invoke-direct {v0}, Lcom/instagram/f/b/f;-><init>()V

    invoke-virtual {v0, p1}, Lcom/instagram/f/b/f;->a(Ljava/lang/String;)Lcom/instagram/f/b/f;

    move-result-object v0

    iget-object v1, p0, Lcom/instagram/android/mediacache/IgImageView;->h:Lcom/instagram/f/b/e;

    invoke-virtual {v0, v1}, Lcom/instagram/f/b/f;->a(Lcom/instagram/f/b/e;)Lcom/instagram/f/b/f;

    move-result-object v0

    iget-boolean v1, p0, Lcom/instagram/android/mediacache/IgImageView;->e:Z

    invoke-virtual {v0, v1}, Lcom/instagram/f/b/f;->a(Z)Lcom/instagram/f/b/f;

    move-result-object v0

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Lcom/instagram/f/b/f;->b(Z)Lcom/instagram/f/b/f;

    move-result-object v0

    invoke-virtual {v0, p2}, Lcom/instagram/f/b/f;->c(Z)Lcom/instagram/f/b/f;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/f/b/f;->a()V

    .line 130
    return-void
.end method

.method static synthetic c(Lcom/instagram/android/mediacache/IgImageView;)Lcom/instagram/android/mediacache/g;
    .locals 1
    .parameter

    .prologue
    .line 20
    iget-object v0, p0, Lcom/instagram/android/mediacache/IgImageView;->f:Lcom/instagram/android/mediacache/g;

    return-object v0
.end method

.method static synthetic d(Lcom/instagram/android/mediacache/IgImageView;)Lcom/instagram/android/mediacache/h;
    .locals 1
    .parameter

    .prologue
    .line 20
    iget-object v0, p0, Lcom/instagram/android/mediacache/IgImageView;->g:Lcom/instagram/android/mediacache/h;

    return-object v0
.end method


# virtual methods
.method public b()V
    .locals 2

    .prologue
    .line 108
    iget-object v0, p0, Lcom/instagram/android/mediacache/IgImageView;->b:Ljava/lang/String;

    const/4 v1, 0x1

    invoke-direct {p0, v0, v1}, Lcom/instagram/android/mediacache/IgImageView;->a(Ljava/lang/String;Z)V

    .line 109
    return-void
.end method

.method public c()V
    .locals 2

    .prologue
    .line 141
    iget-object v0, p0, Lcom/instagram/android/mediacache/IgImageView;->c:Lcom/instagram/f/b/g;

    if-eqz v0, :cond_0

    .line 142
    iget-object v0, p0, Lcom/instagram/android/mediacache/IgImageView;->c:Lcom/instagram/f/b/g;

    iget-object v1, p0, Lcom/instagram/android/mediacache/IgImageView;->h:Lcom/instagram/f/b/e;

    invoke-virtual {v0, v1}, Lcom/instagram/f/b/g;->b(Lcom/instagram/f/b/e;)V

    .line 143
    const/4 v0, 0x0

    iput-object v0, p0, Lcom/instagram/android/mediacache/IgImageView;->c:Lcom/instagram/f/b/g;

    .line 145
    :cond_0
    return-void
.end method

.method public d()Z
    .locals 1

    .prologue
    .line 170
    iget-boolean v0, p0, Lcom/instagram/android/mediacache/IgImageView;->a:Z

    return v0
.end method

.method public getUrl()Ljava/lang/String;
    .locals 1

    .prologue
    .line 166
    iget-object v0, p0, Lcom/instagram/android/mediacache/IgImageView;->b:Ljava/lang/String;

    return-object v0
.end method

.method protected onDetachedFromWindow()V
    .locals 0

    .prologue
    .line 149
    invoke-virtual {p0}, Lcom/instagram/android/mediacache/IgImageView;->c()V

    .line 150
    invoke-super {p0}, Landroid/widget/ImageView;->onDetachedFromWindow()V

    .line 151
    return-void
.end method

.method protected onDraw(Landroid/graphics/Canvas;)V
    .locals 0
    .parameter "canvas"

    .prologue
    .line 185
    invoke-super {p0, p1}, Landroid/widget/ImageView;->onDraw(Landroid/graphics/Canvas;)V

    .line 186
    return-void
.end method

.method public setOnLoadListener(Lcom/instagram/android/mediacache/g;)V
    .locals 0
    .parameter "onLoadListener"

    .prologue
    .line 162
    iput-object p1, p0, Lcom/instagram/android/mediacache/IgImageView;->f:Lcom/instagram/android/mediacache/g;

    .line 163
    return-void
.end method

.method public setProgressListener(Lcom/instagram/android/mediacache/h;)V
    .locals 0
    .parameter "progressListener"

    .prologue
    .line 154
    iput-object p1, p0, Lcom/instagram/android/mediacache/IgImageView;->g:Lcom/instagram/android/mediacache/h;

    .line 155
    return-void
.end method

.method public setReportProgress(Z)V
    .locals 0
    .parameter "reportProgress"

    .prologue
    .line 158
    iput-boolean p1, p0, Lcom/instagram/android/mediacache/IgImageView;->e:Z

    .line 159
    return-void
.end method

.method public setUrl(Ljava/lang/String;)V
    .locals 1
    .parameter "url"

    .prologue
    .line 104
    const/4 v0, 0x0

    invoke-direct {p0, p1, v0}, Lcom/instagram/android/mediacache/IgImageView;->a(Ljava/lang/String;Z)V

    .line 105
    return-void
.end method
